﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace UniryDemo2WEB.Attribute
{
    public class MyErrorAttribure:HandleErrorAttribute
    {

        public static Queue<Exception> ExceptionsQueue=new Queue<Exception>();

        public override void OnException(ExceptionContext filterContext )
        {
            
            ExceptionsQueue.Enqueue(filterContext.Exception);
           // filterContext.HttpContext.Response.Redirect("");
            base.OnException(filterContext);
        }
    }
}